package com.his.registration.service;

import com.his.dto.DrugCharge;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @BelongsProject: workspace-idea
 * @BelongsPackage: com.his.registration.service
 * @Author: ZhangYing
 * @Date: 2023/7/2 15:51
 * @Description:
 */
public interface PrescriptionService {
    //查询患者所有的检查费用
    public List<DrugCharge> getDrugFee(int registerId);

    //缴费
    public int charge(String drugState,int id);

    //插入的初始化
    public int insert(int registerId, int drugId, LocalDateTime creationTime, String drugState);

    //数据更新
    public int update(String drugUsage,int drugNumber,int id);

    //得到刚刚插入的id
    public int getInsertId();

    //根据id删除处方
    public int deleteById(int id);

}
